package priv.yiyuan.example.design.chain.command01;

/**
 * 抽象处理者
 *
 * @author YiYuan
 * @data 2025/10/9
 * @apoNote
 */
public abstract class AccountHandler {

    protected AccountHandler nextHandler;

    public void setNextHandler(AccountHandler nextHandler) {
        this.nextHandler = nextHandler;
    }

    public abstract void handle(Command command, Account account);
}
